
abstract class Shape{//【！！！】
    public abstract void draw();//【！！！】
}

class rectangle extends Shape{
    @Override
    public void draw() {
        System.out.println("画矩形");
    }

}
class Circle extends Shape{
    @Override
    public void draw() {
        System.out.println("画圆");
    }
}
class Triangle extends Shape{
    @Override
    public void draw() {
        System.out.println("画三角形");
    }
}
public class Test {

    public static void drawFuc(Shape shape){

        shape.draw();
    }

    public static void main(String[] args) {
        Shape shape = new rectangle();
        drawFuc(shape);
        drawFuc(new Circle());
        drawFuc(new Triangle());

    }
}